The New York Post lost a bid to dismiss a lawsuit by a former editor who said she was fired after complaining about racism and sexism, including a cartoon that appeared to liken U.S. President Barack Obama to a chimpanzee.