A months-long stoush between the New South Wales government and rail unions appears to have come to an end. A proposed enterprise agreement will see staff receive a 12 percent pay rise over three years and backpay.