Polish Prime Minister Donald Tusk has welcomed an EU plan that could allow Poland to be partially or fully exempt from taking in migrants.