Three people convicted of scamming Microsoft Corp. out of millions by buying sharply discounted software intended for schools and reselling it to nonacademic customers were sentenced to lengthy prison terms. Federal prosecutors said Mirza Ali, 60, and his wife, Sameena Ali, 52, orchestrated the scheme that illegally exploited a Microsoft program that let companies buy its products cheaply if they were to be resold exclusively to educational institutions.