Peter Thiel has agreed not to bid on the assets of bankrupt Gawker Media LLC in exchange for the web publisher’s promise to end an investigation into the tech billionaire.