The 16-year-old son of a Long Island Rail Road executive has been sentenced to three to nine years in prison for robbing and seriously injuring Mary Trump, the mother of Donald J. Trump, on a street near her Queens home.