Bruins earn much-needed victory against Red Wings