Truncated Hamburger moment problems with constraints