The Teamsters union and UPS shipping announced Tuesday that the two sides had reached a tentative agreement on a five-year contract that would avert a crippling strike across the United States. In recent weeks, the prospect of a strike has raised worries among economists and among businesses that rely on the shipping giant.