Updates this state's end range to match the child's end and applies this state's tag. Also recursively updates parent states.
The child state whose range should be included