The federal government will spend $4 million on a study to see if it can build a new oil refinery in Western Australia, which could be the nation’s first such new facility in six decades.