NEWARK, N.J. — Federal officials warned eight railroads, including NJ Transit, that they’re in danger of not having a mandated safety system tested and running by Dec. 31, deadline, which could bring commuter rail service to a halt.