Man sentenced to 249 years for 1991 temple slaying