The European Union warned Romania on Thursday it could face firmer action over the government’s legal changes that the bloc has said threaten the rule of law.