NCAA agrees to allow schools to pay players