The U.S. expects to earn $5 billion to $6 billion from a federal loan program, bolstering President Barack Obama’s decision to back low-carbon technologies.