May survives rebel MPs but EU’s Brexit judgment looms