A $337 million charge dragged on revenue and profitability in the quarter despite record backlog, the firm reported.