Controversial senator Fatima Payman has apologised after being slammed for defending Iran's treatment of women.