California lawmakers have passed a first-of-its-kind legislation that targets Amazon and other large warehouses. The bill, opposed by retail and business groups, now heads to the governor's office.