UK PM wins over MPs on Brexit amendment