A variational principle for a rotating relativistic fluid