The Department of Energy closed a nearly $490 million loan to a Pattern Energy subsidiary for a Puerto Rico battery project while the administration cuts clean energy funding.