The home secretary appears to have won the job running the UK’s economy at the expense of energy secretary Ed Miliband