U.S. Sen. Ted Cruz secured the commitment from the former Florida attorney general at her Senate confirmation hearing on Wednesday.