Ministers warned over terror bill