Britain’s new prime minister, Boris Johnson, named Sajid Javid as his finance minister on Wednesday, a promotion for the former interior minister.