Commission wins legal case but needs to fix its own social dialogue mess