The period of commitment to the home shall be for such time as may be fixed by the juvenile judge, in the order of commitment, pending social study and planning for the best interest of each child committed, but of not longer than the majority of the child.