President Barack Obama has urged Pakistan to free Raymond Davis, a detained U.S. State Department employee on trial in Pakistan for killing two Pakistanis in Lahore, saying he enjoys diplomatic immunity.