U.S. railroad companies and unions representing more than 100,000 workers reached a tentative agreement, the government said, a breakthrough that looks to avert a labor disruption that risked adding supply-chain strains to the world’s largest economy.