UK PM agrees Brexit bill amendment