May escapes Brexit bill defeat as Tory rebels accept concessions