In commercial surrogacy it is thought that as part of the contractual agreement the intended parents acquire the right to make this decision.
In altruistic surrogacy the pregnant woman retains the right to make these decisions, but the intended parents are free to decide not to adopt the child.