European Union leaders agreed to pursue a ban that would halt the imports of most Russian oil, in a move designed to hit the country’s coffers and pave the way for a sixth package of sanctions to punish it and President Vladimir Putin for the invasion of Ukraine.