Budapest's deviation from the official EU stance at the U.N. — to keep cannabis classified at the same level as heroin — sparked a sharp rebuke from judges at the bloc's highest court.