CraigHicks, 50, pleaded guilty to the murders of three young Muslims in 2015.

A North Carolina man was sentenced to life in prison without the possibility of parole after pleading guilty on Wednesday to the murders of three young Muslims in a 2015 case that drew the condemnation of then-President Barack Obama.

Craig Hicks, 50, accepted the sentence after prosecutors in Durham declined to seek the death penalty for the murders, which he told investigators at the time were prompted by a dispute over a parking space, but which prosecutors argued were motivated by bias.

The February 2015 murders of a newlywed Muslim couple and the wife's sister drew international attention and raised concerns among some Muslim advocates in the United States.

The victims were Deah Barakat, 23, a University of North Carolina dental student; his wife, Yusor Abu-Salha, 21; and her sister, Razan Abu-Salha, 19, a student at North Carolina State University. They were gunned down in a condominium about 2 miles (3 km) from the University of North Carolina campus in Chapel Hill.

After the case languished for years, defense attorneys notified Durham County prosecutors last week that Hicks would plead guilty.

A few days after the murders, Obama called the killings “brutal and outrageous murders” in a statement in which he offered condolences to the victims' families.

"No one in the United States of America should ever be targeted because of who they are, what they look like, or how they worship," Obama said.

Deah Barakat, 23, a University of North Carolina dental student; his wife, Yusor Abu-Salha, 21; and her sister were gunned down.

With the courtroom packed with family and friends of the victims, including many women wearing hijabs, prosecutors argued that Hickswas driven to murder by his hatred of people of color, despite his claim that he became enraged when other cars were parked in his reserved spot at his apartment complex.

"It is about malice and intent," Durham County District Attorney Satana Deberry told the court. "It is not about parking."

In addition to pleading guilty to three counts of murder, Hicks, appearing in court handcuffed and in an orange prison jumpsuit, also admitted discharging a weapon into an occupied dwelling, for which he received an additional 64 to 89 months.

Hicks, who had been a paralegal student at Durham Technical Community College since 2012, had portrayed himself on Facebook as an atheist and filled his social media page with anti-religion posts.