Are you saying
that if the court believe it is the best interest of the minor to stay in USA, court might order the minor to resident at USA, regardless of parents' agreement?
Assuming parents have such agreement stated that the one who has physical custody has right to relocate with minor, will the court object such agreement?