A federal judge has sentenced a New York attorney to five years in prison for taking part in a massive mortgage fraud scheme that cheated banks out of $23 million, saying that "some of the poorest people in the community" were "swindled by this fraud."