Cowboys earn first win of season