Just give them to anyone in the street.

==>This is commonly used to mean give one or more of "them" (plural object) to each of multiple people.
==>It can also mean give them all to one person.
Just give them to
any people in the street.

Just give them to
(any) people that look hungry.

Just give them to
(the) people that look hungry.
==> The phrase "
any people
that <clause>" is okay as a verb object. But "any people" is not. Sometimes "that" is optional in introducing the clause:
- give them to any people (that) you meet
- give them to any people (that) you think deserve them
- give them to any people that are not fat