European justice dismisses Warsaw and Budapest