Berry, 44, dropped out of production for the Garry Marshall-directed film last month after Aubry, 34, filed a custody petition. Aubry, a Canadian fashion model, dropped his petition but plans to file a paternity action that would legalize his relationship with his two-year-old daughter.
U.S. & World
Berry's attorney, Neal Hersh, was happy with the outcome.
"We are pleased the judge took the time to deal with this very imminent and important issue," he said in an interview with TMZ. "The judge read a great deal of paperwork and gave us time to argue."
He added, "Halle is very pleased with the judge's order."
Berry's role was recast for Grey's Anatomy's alum Katherine Heigl. In her new role, which has less screen time, Berry will play a nurse.