Charlie Mulgrew's free-kick saw Blackburn claim their first win in seven matches as they beat promotion-chasing Newcastle.