German court cuts funding to hardline far-right party