(CNN) -- The 2-year-old who gained attention after an online video of him swearing went viral will remain with his teenage mother, a judge ruled Monday.
An Omaha juvenile court judge ruled Monday that the toddler and his mother would be placed with the same foster family.
In the video, the diapered boy is taunted and cursed at by adults, who coax him into using crude words.
The toddler knocks down a chair and responds to some of the comments with a middle-finger salute.
The 17-year-old mother and her son had been removed from their home and placed in protective custody after the video surfaced last week, but officials said their removal had little to do with the video, CNN affiliate KETV in Omaha reported.
Last week, the mother defended her son in an interview with KETV. CNN is not identifying the mother or her son because they are juveniles.
"He's a smart little boy. All that cussing that he did, he doesn't do that," the mother said. "Somebody told him to do that. My son doesn't do that. I don't allow it."
She said a friend of her brother filmed the video while she was in another room.
"He was wrong for doing that ... posting the video up and getting us into this situation," she said. "Everybody that thinks I'm a bad mother, I'm not. I'm a good mother to my son. I teach him a lot. He's very smart."
The police union in Omaha posted the clip on its website to highlight what it called the "cycle of violence and thuggery" the community faces.
Afterward, the Omaha Police Officers Association came under fire from the city's police chief, the American Civil Liberties Union of Nebraska and at least one community leader. They say posting the video needlessly antagonized minority communities, which make up about a quarter of Omaha's 409,000 residents.
The ACLU said the union's use of "racially charged language" was "very disconcerting."
Sgt. John Wells, the union's president, said the video was "disturbing" and "offensive."
"The focus here isn't on any particular ethnic group. The focus here is on the troubling behavior toward this child," Wells said. "This behavior is going to potentially lead this child down a path that is completely unhealthy."
Members of the police union turned the video over to the department's child victim unit, Wells said.
CNN's Matt Smith, Faith Karimi, Casey Wian and Jack Hannah contributed to this report.