Anything users have posted on Instagram can be used for legal purposes. It is stated in their privacy policy.