A compromise spending plan for NASA averts cancellation of the James Webb Space Telescope, but caps development of the Hubble successor observatory at $8 billion.