You can use |
to separate patterns, in your example you can do
tree -I "node_modules|bower_components"
You need the double quotation marks so that bash won't interpret the pipe character.
If you look at the man pages for tree, read the one for the -P argument instead of the -I (just above).