‘WASHINGTON—President Barack Obama Tuesday vetoed legislation that would have approved the Keystone XL pipeline, a project that is a top priority for congressional Republicans and a touchstone issue for environmentalists and the nation’s booming energy industry.’