Rhode Island and Massachusetts are joining 22 other states in challenging president Donald Trump's executive order to end birthright citizenship.