Just in time, clean-energy companies Rivian Automotive Inc. and Plug Power Inc. have closed loan agreements with the Biden administration that will fund the construction of manufacturing plants in the United States.