The US Senate confirmed a controversial judicial nominee Wednesday over objections from civil rights groups and Democrats who criticised President Donald Trump’s pick as being hostile to the LGBT+ community.

One Republican, Senator Susan Collins of Maine, joined every voting Democrat to oppose Matthew Kacsmaryk’s lifetime appointment to the federal bench in the Northern District of Texas.

He was confirmed 52-46.

“Mr Kacsmaryk has demonstrated a hostility to the LGBTQ bordering on paranoia,” Senate Minority Leader Chuck Schumer said before the vote.

“It’s unbelievable that this man has been nominated, and he’s not alone...One Republican senator rightfully voiced concerns about this man’s fitness. Where are the others?”

Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Show all 30 1 /30 Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Members of the Proud Boys, a fascist group, jeer at anti-Trump protesters outside of the president's 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A supporter dressed as Uncle Sam poses at Uncle Sam Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A baby blimp rears its head amidst a group of anti-Trump protesters outside the president't campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam President Trump addresses supporters at the launch event of his 2020 election campaign in Orlando, Florida Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Proud Boys have adopted Fred Perry polo shirts as their uniform and many members have the name of the group tattooed on their arms Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A line of police officers separate opposing groups of protesters outside the launch of President Trump's 2020 campaign launch Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A protester hits a Trump punching bag during a protest outside Trump's 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Twin Trump supporters pose for a photo at the president's 2020 campaign launch in Orlando, Florida Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A protester dressed as a caricature of Donald Trump stands outside the president's 2020 campaign launch in Orlando, Florida AP Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A Trump supporter faces off against a protester outside the president's campaign launch in Orlando, Florida AFP/Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A Proud Boy shouts across the police line at anti-Trump protesters outside the president's campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A Trump supporter poses for a photo at the president's 2020 campaign launch in Orlando, Florida Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A Proud Boy jeers at anti-Trump protesters who are separated from the president's supporters by a police line outside the president's campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A man dressed as Uncle Sam poses at President Trump's 2020 campaign launch in Orlando, Florida Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam An anti-Trump protester faces off against a supporter outside the president's campaign launch in Orlando, Florida AFP/Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Members of the Proud Boys, a fascist group, jeer at anti-Trump protesters outside of the president's 2020 campaign launch Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A child holds a 2020 US "dollar bill" that features Donald Trump's face at the president's 2020 campaign launch EPA Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Anti-Trump protesters rally outside the president's 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Anti-Trump protesters rally outside the president's 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Numerous baby Trump balloons are raised in protests outside of the president's 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A supporter wears a T-shirt depicting Trump as a hero at the president's 2020 campaign launch in Orlando, Florida Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam President Trump addresses supporters at the launch event of his 2020 election campaign in the Amway Centre in Orlando, Florida AFP/Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam An anti-Trump protester calls for the president to be impeached outside the launch event for his 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Supporters of Donald Trump face off against protesters outside of the president's 2020 campaign launch in Orlando, Florida AP Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A baby blimp rises behind a group of anti-Trump protesters outside the president's campaign launch in Orlando, Florida AP Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A supporter dressed as Uncle Sam poses at President Trump's 2020 campaign launch in Orlando, Florida AP Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A member of the Proud Boys, a fascist group, holds a sign up outside of the president's 2020 campaign launch in Orlando, Florida AFP/Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam A supporter bears a Trump flag at the president's 2020 campaign launch in Orlando, Florida Reuters Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam Protesters hold baby Trump balloons in the rally outside of the president's 2020 campaign launch in Orlando, Florida Getty Trump 2020 launch: Fascist Proud Boys, baby blimps and Uncle Sam An anti-Trump protester holds a sign accusing the president of being a traitor Getty

Ms Collins, in a statement last week announcing her intention to vote “no”, said Mr Kacsmaryk’s “extreme statements” on LGBTQ and reproductive rights issues “reflect poorly on Mr Kacsmaryk’s temperament and suggest an inability to respect precedent and to apply the law fairly and impartially”.

While Ms Collins, who had angered LGBT+ and women’s rights groups with her vote for Supreme Court Justice Brett Kavanaugh, sided with them this time, Senator Lisa Murkowski, another ally of those groups who voted against Justice Kavanaugh, did not.

Ms Murkowski’s office did not return a request for comment about her vote for Kacsmaryk.

“The courts have been at the forefront of securing LGBTQ equality on many fronts, including the necessary and lifesaving legal protections opposed by Kacsmaryk and many other Trump nominees,” said Gillian Branstetter, spokeswoman for the National Centre for Transgender Equality.

“We would hope any lawmaker who believes in the need for that equality would understand the importance of inoculating the legal system from the kinds of bias and prejudice held by Kacsmaryk.”

Opponents of Mr Kacsmaryk’s nomination point to his writings, in which he has described being transgender as a “mental disorder”, called homosexuality “disordered” and said “sexual revolutionaries” had made unborn children and marriage secondary to “erotic desires of liberated adults”.

“This person being in a position of power anywhere in government would be deeply troubling, but his lifetime appointment to the federal bench by Trump and Pence will now present a clear threat to the rights and livelihoods of LGBTQ people for decades to come,” said Charlotte Clymer, press secretary of Human Rights Campaign.

“It is unconscionable that this person would be confirmed to arbitrate our constitutional rights despite his outspoken hatred towards LGBTQ people.”

Mr Kacsmaryk most recently served as deputy general counsel at First Liberty Institute, a legal organisation that defends religious freedom cases.

Trump pledges to cure cancer, eradicate AIDs and send astronauts to Mars

His former boss there, Kelly Shackelford, president and CEO, said after the confirmation vote: “Matthew has spent his career fighting to defend our God-given, constitutionally protected rights.

“Matthew’s confirmation is further evidence that presidential appointees who strictly adhere to the text of the Constitution and the founders’ original intent for our most fundamental freedoms, including religious liberty, can and will be confirmed by the US Senate.”

Several Democrats and advocates pointed out the particular sting of Mr Kacsmaryk’s confirmation occurring during Pride Month.