Kemi Badenoch’s controversial criticism of maternity pay was “short-sighted” and “outright offensive”, MLAs have said.