Brussels and Budapest have a rare and fleeting chance to improve Europe’s defence and correct the bloc’s dysfunction