The EU's highest court has fined Germany and four other countries for failing to create laws to boost protection for those who expose wrongdoing.