Legislator rebuked for speaking at event described as anti-Muslim