The D.C. Council narrowly voted Tuesday to not to extend a multimillion-dollar contract for the company running the District’s only public hospital, as lawmakers voiced concerns about allegations of mismanagement and a string of recent medical incidents that have raised questions about patient safety.