Which hormone is primarily responsible for maintaining the uterine lining during early pregnancy until the placenta takes over?