Blackburn are relegated to League One on goal difference, despite beating Brentford, after Nottingham Forest and Birmingham win.