Network Rail workers accept new deal