Huskies edge Cougars 87-84, snap 7-game losing streak