Estonian PM reaches agreement to regain majority in parliament