Massachusetts formally recognised a union of ride-share drivers in a historic move that could set a national precedent for gig-worker labour rights in the United States.