The EU’s highest court has ordered Ireland to pay a lump sum and a daily penalty to the European Commission for not transposing a 2018 EU directive into national law.