The Poincaré-Birkhoff Theorem for a Class of Degenerate Planar Hamiltonian Systems