Senator Larry E. Craig of Idaho, defying the wishes of many in his own Republican Party, said today that he would remain in the Senate through next year despite a court ruling against him in Minnesota, where he sought to rescind his guilty plea stemming from an undercover sex sting.