State and local officials have agreed on a $590 million bridge loan to prop up Bay Area transit agencies until voters decide on a sales tax increase to bolster the systems.