ORLANDO, Fla., June 17 (Reuters) - President Barack Obama on Thursday met survivors of a massacre at an Orlando gay nightclub and relatives of the 49 people killed and said the United States must act to control gun violence and fight what he called homegrown terrorism.
[caption id="attachment_201880" align="aligncenter" width="800"]
U.S. President Barack Obama receives a t-shirt from Mayor of Orlando Buddy Dyer (C) as he arrives in Orlando to meet with families of victims of the Pulse nightclub shooting, in Florida, U.S., June 16, 2016. REUTERS/Carlos Barria[/caption]
"I held and hugged grieving family members and parents, and they asked, 'Why does this keep happening?'," Obama told reporters, before urging Congress to pass measures to make it harder to legally acquire high-powered weapons like the semi-automatic rifle used in the attack on Sunday.
"I'm pleased to hear that the Senate will hold votes on preventing individuals with possible terrorist ties from buying guns," he said.
[caption id="attachment_201881" align="aligncenter" width="800"]
Mourners arrive at the funeral of Kimberly Morris in Kissimmee, Florida, U.S., June 16, 2016. Morris was one of the 49 people killed in the shooting incident at a nightclub in Orlando June 12. REUTERS/Carlo Allegri[/caption]
[caption id="attachment_201882" align="aligncenter" width="800"]
Mourners arrive at the funeral of Kimberly Morris in Kissimmee, Florida, U.S., June 16, 2016. Morris was one of the 49 people killed in the shooting incident at a nightclub in Orlando June 12. REUTERS/Carlo Allegri[/caption]
[caption id="attachment_201883" align="aligncenter" width="800"]
Mourners arrive at the funeral of Kimberly Morris in Kissimmee, Florida, U.S., June 16, 2016. Morris was one of the 49 people killed in the shooting incident at a nightclub in Orlando June 12. REUTERS/Carlo Allegri[/caption]
Obama and Vice President Joe Biden arrived in Orlando, Florida, four days after a U.S.-born gunman claiming allegiance to various Islamist militant groups carried out the deadliest mass shooting in modern U.S. history.
During the shooting rampage the gunman, Omar Mateen, exchanged text messages with his wife, it was reported on Thursday, as well as posting on Facebook and placing a phone call to a television station. Police killed Mateen, 29, a U.S. citizen born in New York to Afghan immigrants.
Obama, who has visited mass shooting victims' families in towns from San Bernardino, California, to Newtown, Connecticut, since he has been president, laid flowers at a memorial for the victims of the attack on the Pulse nightclub.
Islamic State claimed responsibility for the attack but U.S. officials have said they do not believe Mateen was assisted from abroad. CIA Director John Brennan told a Senate Intelligence Committee hearing on Thursday that the agency had "not been able to uncover any direct link" between Mateen and militants abroad.
Hank Morgan reacts after hanging a banner for the Pulse gay nightclub shooting victims in Orlando, Florida, U.S., June 16, 2016. REUTERS/Jim Young[/caption]
[caption id="attachment_201886" align="aligncenter" width="800"]
U.S. President Barack Obama waves as he boards Air Force One for travel to Orlando from Joint Base Andrews, in Washington U.S., June 16, 2016. REUTERS/Carlos Barria[/caption]
[caption id="attachment_201887" align="aligncenter" width="800"]
Two mourners hug ahead of the funeral of Kimberly Morris in Kissimmee, Florida, U.S., June 16, 2016. Morris was one of the 49 people killed in the shooting incident at a nightclub in Orlando June 12. REUTERS/Carlo Allegri[/caption]
[caption id="attachment_201888" align="aligncenter" width="800"]
People pay tribute to the victims of the Pulse gay nightclub shooting in Orlando, Florida in a meeting organized by the LGBT Uruguayan community in Montevideo, June 16, 2016. REUTERS/Andres Stapff[/caption]
Shortly afterward, McCain said on his official Twitter feed that he was referring to Obama's national security decisions, "not to the President himself."
Mateen carried out the slaughter with an assault weapon and handgun that had been legally purchased although he had twice been investigated by the FBI for possible connections with militant Islamist groups.
Obama reiterated his frustration over the failure of Congress to pass any gun control measures in more than two decades. The massacre put pressure on Congress to act.
After a marathon of speeches by Democrats on Wednesday and into the early hours of Thursday, a Democratic senator said Republicans had agreed to hold votes on measures to expand background checks and prevent people on U.S. terrorism watch lists from buying guns.
No formal deal between the parties for votes was announced, and it was unclear when and how the Senate would proceed with the votes, which would be amendments to an appropriations bill funding the Commerce and Justice departments. Even if votes are scheduled, it is unclear whether any of the bills could gain enough support to pass the Senate.
Senator John Cornyn of Texas, the No. 2 Republican in the Senate, said the chamber would most likely vote on four gun control measures on Monday.
Republicans, who currently hold a 54-person majority in the 100-seat Senate, have blocked a number of Democratic-backed gun control measures over the years, saying they infringed on Americans' constitutional right to bear arms.
Presumptive Republican presidential nominee Donald Trump also joined the gun debate, announcing on Wednesday he would meet the National Rifle Association to talk about barring people who are on terrorism watch lists from buying guns.