OTTAWA — The federal government posted a budgetary deficit of $21.7 billion for the April-to-December period of its 2024-25 fiscal year. The result compared with a deficit of $23.6 billion for the same period a year earlier.