New Jersey’s biggest newspaper, the Star-Ledger, said Wednesday that it will stop publishing its print edition in February amid rising costs and slumping demand for print.