The United Auto Workers have reached an agreement with Rivian Automotive Inc. that would make it easier to unionize the company’s workforce — contingent on the electric-vehicle maker reaching profitability. Under Rivian and the UAW’s confidential pact, the automaker would adopt a neutral stance toward efforts to organize workers at the Normal, Illinois, factory where its vehicles are made, according to people familiar with the matter.