Federal judge on bench for 40 years lambasts grant terminations as 'racist' and anti-LGBTQ.