A Bronx astronomer convicted of sexually assaulting and killing a 13-year-old girl after DNA linked him decades later to the crime was sentenced Thursday to 25 years to life in prison.