I would love to see how any court in the world can insist that a country accept non-EU migrants.
The EU is steadily evolving into a central government (EU institutions, the governments of Germany and France) that formulates policy that the periphery (member states) are expected to carry out no questions asked. It's past its peak as a formation capable of improving citizen lives and now primarily exists as job creation program for bureaucrats and unrealistic social planning. The UK has the right idea.
Again, even if Poland went along with these plans
- is Poland then expected to keep these people _in_ Poland?
If so, then how is Poland supposed to keep them when there's no border infrastructure to monitor their movement?
What repurcussions would Poland suffer for not keeping them in the country?
Until those questions are answered there's not a single reason that this should even be proposed. Unless it's all PR for domestic German purposes to put a little lipstick on Mama Merkel's pig of a "refugee" policy).