Gig economy companies are backing state laws in New York and elsewhere that would cement drivers’ status as contractors in exchange for a union.