Federal government to appeal prostitution ruling