SpaceX is preparing for a potentially historic IPO, hiring Gibson Dunn and Davis Polk & Wardwell for legal counsel as it aims for a $1.75 trillion valuation.