L1 visa holder sent back to home country by employer in spite of bad medical condition of family

I am in US in L1 visa with more one year validity. My company wants to send me back to my home country immediately. But, my wife is 6 months pregnant with medical complications and I got a letter from doctor mentioning travel is not safe for her. My company agreed to extend my US tenure till her delivery provided I sign a two years bond with them to serve in the home country after going back or pay $25000 penalty. Please suggest if I should sign this bond and if it is legal. Also, if I do not sign this contract, can they send me back with such bad medical conditions?

Thanks in advance for your help/suggestions.