EU takes legal action over Poland's court reforms