President Joe Biden’s administration announced Tuesday that the U.S. Department of Energy will make a $6.6 billion loan to Rivian Automotive to build a factory in Georgia that had stalled as the startup electric vehicle maker struggled to become profitable.