Trump spokeswoman’s social media post immediately used against administration in court