The unusual move, which comes weeks before the midterm elections, has been derided by Democrats and advocates as a stunt.