Philadelphia received $2.2 billion from the federal government in its last complete fiscal year, accounting for about a fifth of total spending.