TEHRAN — An Iranian court has sentenced a women’s rights activist to almost three years in prison and 10 lashes for attending a banned rally, her lawyer said Tuesday. Lawyer Nasrin Sotoudeh said Delaram Ali, 24, was her fourth client to be convicted over the protest in favor of rights for women in the conservative Islamic state. Scores of people were detained at the June 2006 demonstration.