The largest police union in the United States has been accused of lying in a social media post showing an officer carrying a black toddler during protests in Philadelphia.