Legislation Undermining Habeas Upheld