Orioles rally to beat Mariners 2-1 in 12 innings