The largest U.S. solar panel manufacturer is spending more than $1 billion on a new factory in Alabama.