During a speech in Las Vegas, U.S. Treasury Secretary Janet Yellen made her case for being optimistic about the U.S. economy while also touting clean energy legislation.