How was Solomon confirmed as king?