US President Barack Obama and Pope Francis on Thursday agreed a "common commitment" to eradicate human trafficking during a historic first meeting and discussed immigration reform, the Vatican said.