The vote puts Kash Patel in charge of the country’s premier law enforcement agency.