A man who set off bombs in New York City and New Jersey was sentenced Tuesday to multiple terms of life in prison.