Road and energy projects are set to be scrapped to pay for the military, the prime minister acknowledged