The federal government ran a deficit of $39 billion in January 2023, a $158 billion change from the surplus of $119 billion that was recorded in January 2022.