President Barack Obama visited Las Vegas on a swing through the West, talking up energy development to create jobs and reduce the country’s dependence on foreign oil.