Cowboys lasso much-needed win