The curator had said she had been offered a job, but that the museum changed its mind after learning she had just given birth.