The leaders of the ruling coalition in Bucharest have reached a compromise after a five-hour meeting.