The European Commission warned Romania on Wednesday it would take action against it if the country does not address the European Union executive’s concerns over the judiciary.