The Japanese government on Wednesday formally agreed to grant a concessional loan of Rs5 billion to Pakistan for supporting the energy sector reforms.