In his third attempt to appoint a commerce secretary, President Obama has settled on former Gov. Gary Locke of Washington, a White House official said.