California on Wednesday became the first state to bar mega-retailers from firing warehouse workers for missing quotas that interfere with bathroom and rest breaks under a new law signed by Gov. Gavin Newsom that grew from Amazon’s drive to speed goods to consumers more quickly. The measure also bars Amazon, the online retail giant, and…