Brooklyn rabbi gets year in prison in NJ corruption case