Professor praised for putting crib in his office so student can work alongside her daughter