With billions of dollars on the line, one of the most significant affordability and tax policy decisions of the year in Massachusetts appears headed for a showdown before the state's highest court.