Story highlights In a 5-4 decision, the high court likens taking a DNA sample to fingerprinting an arrestee

In dissent, Justice Antonin Scalia says the ruling establishes a "terrifying principle"

Civil liberties groups worry about errors by overwhelmed lab technicians

The Supreme Court has ruled criminal suspects can be subjected to a police DNA test after arrest -- before trial and conviction -- a privacy-versus-public-safety dispute that could have wide-reaching implications in the rapidly evolving technology surrounding criminal procedure.

At issue in the ruling Monday was whether taking genetic samples from someone held without a warrant in criminal custody for "a serious offense" is an unconstitutional "search."

A 5-4 majority of the court concluded it is legitimate, and upheld a state law.

"When officers make an arrest supported by probable cause to hold for a serious offense and they bring the suspect to the station to be detained in custody, taking and analyzing a cheek swab of the arrestee's DNA is, like fingerprinting and photographing, a legitimate police booking procedure that is reasonable under the Fourth Amendment," the majority wrote.

Law enforcement lauds genetic testing's potential as the "gold standard" of reliable evidence gathering, especially to solve "cold cases" involving violent offenders.

But privacy rights groups counter the state's "trust us" promise not to abuse the technology does not ease their concerns that someone's biological makeup could soon be applied for a variety of non-criminal purposes.

Twenty-six states and the federal government allow genetic swabs to be taken after a felony arrest and without a warrant.

Each has different procedures, but in all cases, only a profile is created. About 13 individual markers out of some 3 billion are isolated from a suspect's DNA. That selective information does not reveal the full genetic makeup of a person and, officials stress, nothing is shared with any other public or private party, including any medical diagnostics.

Photos: Photos: Supreme Court cases that changed America Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Hollingsworth v. Perry (2013): The Supreme Court dismissed an appeal over California's Proposition 8 on jurisdictional grounds. The voter-approved ballot measure barring same-sex marriage was not defended by state officials, but rather a private party. This ruling cleared the way for same-sex marriage in California to resume, but left open-ended the legal language of 35 other states barring same-sex marriage. Take a look at other important cases decided by the high court. Hide Caption 1 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – United States v. Windsor (2013): When her wife died in 2009, Edith Windsor, 84, was forced to pay hundreds of thousands of dollars in estate taxes because her marriage was not recognized by the federal government's Defense of Marriage Act of 1996. The Supreme Court struck down the part of the law which denied legally marriage same-sex couples the same federal benefits provided to heterosexual spouses. Hide Caption 2 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – National Federation of Independent Business v. Sebelius (2012): The Supreme Court upheld most of the Affordable Care Act, the Obama administration's health care reform law, on June 28, 2012. The decision determined how hundreds of millions of Americans will receive health care. Hide Caption 3 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Citizens United v. Federal Election Commission (2010): Activists rally in February 2012 to urge the Supreme Court to overturn its decision that fundamentally changed campaign finance law by allowing corporations and unions to contribute unlimited funds to political action committees not affiliated with a candidate. Hide Caption 4 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Texas v. Johnson (1989): The Supreme Court overturned the decision that convicted Gregory Lee Johnson of desecrating a venerated object after he set an American flag on fire during a protest. The court ruled that Johnson (at right with his lawyer, William Kunstler) was protected under the First Amendment right to freedom of speech. Hide Caption 5 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – United States v. Nixon (1974): When President Richard Nixon claimed executive privilege over taped conversations regarding the Watergate scandal, the Supreme Court ruled that he had to turn over the tapes and other documents. The ruling set a precedent limiting the power of the president of the United States. Hide Caption 6 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Roe v. Wade (1973): Norma McCorvey, identified as "Jane Roe," sued Dallas County District Attorney Henry Wade over a law that made it a felony to have an abortion unless the life of the mother was in danger. The court agreed with Roe and overruled any laws that made abortion illegal in the first trimester. Here, McCorvey, left, stands with her attorney Gloria Allred in 1989. Hide Caption 7 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Miranda v. Arizona (1966): Ernesto Miranda confessed to a crime without the police informing him of his right to an attorney or right against self-incrimination. His attorney argued in court that the confession should have been inadmissible, and in 1966, the Supreme Court agreed. The term "Miranda rights" has been used since. Hide Caption 8 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Gideon v. Wainwright (1963): The Supreme Court overturned the burglary conviction of Clarence Earl Gideon after he wrote to the court from his prison cell, explaining he was denied the right to an attorney at his 1961 trial. Hide Caption 9 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Mapp v. Ohio (1961): The Supreme Court overturned the conviction of Dollree Mapp because the evidence collected against her was obtained during an illegal search. The ruling re-evaluated the Fourth Amendment, which protects citizens against unreasonable searches and seizures. Hide Caption 10 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Brown v. Board of Education (1954): Nathaniel Steward recites his lesson surrounded by white classmates at the Saint-Dominique School in Washington. In Brown v. Board of Education, the Supreme Court ruled that it was unconstitutional to separate students based on race. Hide Caption 11 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Korematsu v. United States (1944): Fred Korematsu, a Japanese-American man, was arrested after authorities found out that he claimed to be a Mexican-American to avoid an internment camp during World War II. The court ruled that the rights of an individual were not as important as the need to protect the country during wartime. In 1998, President Bill Clinton awarded Korematsu the Presidential Medal of Freedom. Hide Caption 12 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Plessy v. Ferguson (1896): Homer Plessy was arrested when he refused to leave a whites-only segregated train car, claiming he was 7/8 white and only 1/8 black. The Supreme Court ruled that "separate but equal" facilities for blacks were constitutional, which remained the rule until Brown v. Board of Education in 1954. Hide Caption 13 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Dred Scott v. Sandford (1857): When Dred Scott asked a circuit court to reward him his freedom after moving to a free state, the Supreme Court ruled that Congress didn't have the right to prohibit slavery and, further, that those of African-American descent were not protected by the Constitution. Hide Caption 14 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Gibbons v. Ogden (1824): This was the first case to establish Congress' power to regulate interstate commerce. The ruling signaled a shift in power from the states to the federal government. Aaron Ogden, seen here, was given exclusive permission from the state of New York to navigate the waters between New York and certain New Jersey ports. When Ogden brought a lawsuit against Thomas Gibbons for operating steamships in his waters, the Supreme Court sided with Gibbons. Hide Caption 15 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – McCulloch v. Maryland (1819): In response to the federal government's controversial decision to institute a national bank in the state, Maryland tried to tax the bank out of business. When a federal bank cashier, James W. McCulloch, refused to pay the taxes, the state of Maryland filed charges against him. In McCulloch v. Maryland, the Supreme Court ruled that chartering a bank was an implied power of the Constitution. The first national bank, pictured, was created by Congress in 1791 in Philadelphia. Hide Caption 16 of 17 Photos: Photos: Supreme Court cases that changed America Supreme Court cases that changed America – Marbury v. Madison (1803): When Secretary of State James Madison, seen here, tried to stop Federal loyalists from being appointed to judicial positions, he was sued by William Marbury. Marbury was one of former President John Adams' appointees, and the court decided that although he had a right to the position, the court couldn't enforce his appointment. The case defined the boundaries of the executive and judicial branches of government. Hide Caption 17 of 17

The Obama administration has signaled its support.

The case involves a Maryland man convicted of a 2003 rape in Wicomico County in the state's Eastern Shore region. Alonzo King Jr. had been arrested four years ago on an unrelated assault charge, and a biological sample was automatically obtained at that time. That sample was linked to the earlier sexual assault.

King moved to suppress that evidence on Fourth Amendment grounds, but was ultimately convicted of the 2003 first-degree rape offense and was given a life sentence. The Fourth Amendment grants the "right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures."

Both King and his legal team turned down CNN's request for an interview.

A divided Maryland Court of Appeals later agreed with King, saying suspects under arrest enjoy a higher level of privacy than a convicted felon, outweighing the state's law enforcement interests. That court also said obtaining King's DNA immediately after arrest was not necessary in identifying him, and that the process was more personally invasive than standard fingerprinting.

But the high court decided in favor of the state. Kennedy was joined by Chief Justice John Roberts, and Justices Clarence Thomas, Stephen Breyer, and Samuel Alito.

The issue of citizen privacy has been particularly acute since the 9/11 attacks. Federal and state governments have stepped up surveillance of suspected terrorists and their allies and of high-risk targets, like government buildings and shopping malls.

The current conservative-majority court has generally been supportive of law enforcement in recent search and privacy disputes, but not always. The court last year ruled police could not place a GPS tracking device on a drug suspect's car for several weeks without first obtaining a search warrant.

In a sharply worded dissent, Justice Antonin Scalia said the majority's reasoning established a "terrifying principle."

"The court's opinion barely mentions the crucial fact about this case: the search here was entirely suspicionless. The police had no reason to believe King's DNA would link him to any crime."

Scalia added the state law "manages to burden uniquely the sole group for whom the Fourth Amendment's protections ought to be most jealously guarded: people who are innocent of the state's accusations," describing of the legal concept of innocent until proven guilty.

He was supported by Justices Ruth Bader Ginsburg, Sonia Sotomayor, and Elena Kagan. Scalia's prior support of Fourth Amendment protections is well-documented, so his siding with three more liberal members of the court was not surprising.

A 1994 federal law created a national database in which local, state, and federal law enforcement agencies can compare and share information on DNA matches from convicted felons, but courts have been at odds on just when such samples can be collected and the information distributed.

In a brief filed by 49 states supporting Maryland, officials also said the information is secure, and retested when an initial "hit" is identified. After a warrant is issued for probable cause, another fresh DNA sample is taken and it is that test that is used to ultimately prosecute in court. Each initial test costs about $30.

The Fourth Amendment requires the government to balance legitimate law enforcement interests with the privacy rights of individuals. A key area of concern in the high court was whether developing "Rapid DNA" technology would allow initial identification testing to be completed within about two hours. Currently it can take two weeks or more, depending on backlogs.

Civil liberties groups worry inadequate testing by overwhelmed lab technicians can lead to errors, such as the one that sent Dwayne Jackson to prison for armed robbery. It was three years before a lab mistake was noticed, and the Nevada man was freed as an innocent man.

DNA -- Deoxyribonucleic acid -- is a coded molecule providing a genetic map for the development of all known living organisms. By 2000, all 50 states and the federal government required DNA collection from convicted offenders, and that was soon expanded by many jurisdiction to criminal arrests.

The number of offender profiles in federal Combined DNA Index System is now about 10 million, with more than a million arrestee profiles.

Congress in December passed the Katie Sepich Enhanced DNA Collection Act, a grant program to help states pay for the expanded system. The 22-year-old woman was murdered in 2003, but her killer was not identified until three years later, after his conviction for another crime, when his DNA matched cold-case evidence found under the victim's fingernails.

Her mother, Jayann Sepich, personally lobbied lawmakers for months to ensure passage.

President Obama signed the bill earlier this year. "It's the right thing to do," he said in 2010, of expanding DNA swabs for arrestees. "This is where the national registry becomes so important."

The case is Maryland v. King (12-207).