British premier ends X boycott as platform moves to comply with UK law