President Barack Obama's administration played favorites on clean-energy loans while improperly blocking a carmaker and a related technology company from receiving millions in aid, according to two lawsuits.