Man who admitted to firing at two police officers sentenced to 25 years in prison