The U.S. Energy Department has conditionally agreed to loan more than $2 billion to a company building a lithium mine in Nevada.