Senate takes first step toward electing attorney general