One of NSW’s most powerful unions and the government will face off in court over a rail strike debacle that has put New Year’s Eve celebrations on the line.