Theresa May has arrived at the EU summit in Brussels after losing a crucial vote in Westminster.