It's not legally binding, but it is central to what the US is and has been. That's why they put the poem there, and that's why Americans welcomed the gift and erected the statue, and that's why it has been considered to be one of our most cherished symbols ever since.