This doesn't add up, the junction box cannot "know" to somehow let energy flow from the import meter to CU2 but not from CU1 to CU2, unless it is not merely a junction box [I don't know the word for what such a thing would be].
I assume the battery hangs off the inverter? Not that it would make any difference to the question.
As an analogy, think of the wiring as a series of tubes carrying fluid, and the two sources of power in the circuit as sources of pressure. The tendency is for the fluid to flow from high to low pressure areas until they balance out.
The more "pressure" contributed by the inverter, the lower the difference in pressure between either side of the import meter, and the less fluid that flows into your house through it.
I'm not sure if this analogy helps you, but it's all I've got