Universities in Germany are mostly free with generous system of funding for poor students.
From attached link most of the spending is on state and local level.
>Federal education spending: The federal government had little involvement in education in the early 20th century. This changed in the 1930s when federal education spending increased from less than 0.05 percent of GDP to over 0.3 percent of GDP. Federal education spending decreased during World War II but then increased to a peak of 1.03 percent of GDP in 1949 as it funded education for veterans in the GI Bill. Federal education spending declined in the 1950s to 0.3 percent of GDP, but began an increase in the mid 1960s reaching a peak of 1.2 percent of GDP in 1979. Thereafter federal education spending declined to about 0.6 to 0.7 percent of GDP in the 1980s and 1990s before increasing modestly to nearly 0.8 percent of GDP in the 2000s.
> In the early 2010s federal education spending declined to 0.7 percent in 2015, and is expected to be 0.5 percent GDP by 2020.