A Sydney IT consultant has been sentenced to three years in prison for his role in a failed scheme that tried to defraud $21 million from NAB.