Treasury CS Henry Rotich and PS Kamau Thugge have been granted Sh15 million bail each.
They have an option of depositing Sh50 million bond.
Justice Douglas Ogoti ordered them to surrender their passports in eight hours.
The state officials have also been barred from accessing their offices.
They are accused of consipracy to defraud government, failing to comply with procurement law and irregular procurement of insurance policy through single sourcing for the Arror and Kimwarer dams project.
Ogoti said there is a trend that the more the money in question lost the higher the bail terms should be.
Tender committee members for the dams projects and Nema director general Geoffrey Wakhungu were released on Sh750,000 bail.
PS Susan Koech, another suspect, was released on Sh6 million bail with an option of Sh30 bond.
The prosecution was led by Taib Ali Taib.
He had proposed the accused surrender their passports and travel documents.