The Greek parliament has passed a law allowing migrants arriving in the country to be returned to Turkey. The legislation was approved as part of an accord between the European Union and Turkey - designed to discourage migrants from coming to Europe.