Polish court to rule on primacy of EU law amid tensions with Brussels