Move to retain ‘overall security responsibility’ aims to ensure Palestinian territory cannot be dominated by Hamas