The singer must abide by a residence requirement for prospective adoptive parents, the court ruled