Poland, Hungary, and Czech Republic broke EU law by refusing to take in migrants